package com.cofluent.web.client.model;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Build implements IsSerializable
{
	private String cvsTag="";
	private String versionNumber="";
	private String buildNumber="";
	private String releaseNumber="";
	private String dataNumber="";
	private String systemCSimulationLibrary="";
	private String metaGenerator="";
	private String userManual="";
	private String gnuCompiler="";
	private String jdk="";

	public String getDataNumber()
	{
		return dataNumber;
	}

	public void setDataNumber(String dataNumber)
	{
		this.dataNumber=dataNumber;
	}

	public String getSystemCSimulationLibrary()
	{
		return systemCSimulationLibrary;
	}

	public void setSystemCSimulationLibrary(String systemCSimulationLibrary)
	{
		this.systemCSimulationLibrary=systemCSimulationLibrary;
	}

	public String getMetaGenerator()
	{
		return metaGenerator;
	}

	public void setMetaGenerator(String metaGenerator)
	{
		this.metaGenerator=metaGenerator;
	}

	public String getUserManual()
	{
		return userManual;
	}

	public void setUserManual(String userManual)
	{
		this.userManual=userManual;
	}

	public String getGnuCompiler()
	{
		return gnuCompiler;
	}

	public void setGnuCompiler(String gnuCompiler)
	{
		this.gnuCompiler=gnuCompiler;
	}

	public String getJdk()
	{
		return jdk;
	}

	public void setJdk(String jdk)
	{
		this.jdk=jdk;
	}

	public void setBuildNumber(String buildNumber) {
		this.buildNumber = buildNumber;
	}

	public void setCvsTag(String cvsTag) {
		this.cvsTag = cvsTag;
	}

	public void setReleaseNumber(String releaseNumber) {
		this.releaseNumber = releaseNumber;
	}

	public void setVersionNumber(String versionNumber) {
		this.versionNumber = versionNumber;
	}

	public String getBuildNumber() {
		return buildNumber;
	}

	public String getCvsTag() {
		return cvsTag;
	}

	public String getReleaseNumber() {
		return releaseNumber;
	}

	public String getVersionNumber() {
		return versionNumber;
	}

	public boolean equals(Object obj)
	{
		if (obj instanceof Build)
		{
			Build build=(Build)obj;
			return build.buildNumber.equals(buildNumber) && build.cvsTag.equals(cvsTag) &&
				build.releaseNumber.equals(releaseNumber) && build.versionNumber.equals(versionNumber);
		}
		return super.equals(obj);
	}

	public String[] toStringArray()
	{
		String [] result=new String[10];
		result[0]=getCvsTag();
		result[1]=getVersionNumber();
		result[2]=getBuildNumber();
		result[3]=getReleaseNumber();
		result[4]=dataNumber;
		result[5]=systemCSimulationLibrary;
		result[6]=metaGenerator;
		result[7]=userManual;
		result[8]=gnuCompiler;
		result[9]=jdk;
		return result;
	}
}
